﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kioskvalt.Common
{
    public class Configuration
    {
        public string ServerHost;
        public int ServerPort;

        public List<UIConfig> UIs;
        public List<DeviceConfig> Devices;
        public List<EditorConfig> Editors;

        public static Configuration Current;

        public Configuration()
        {
            ServerHost = "";
            ServerPort = 0;
            UIs = new List<UIConfig>();
            Devices = new  List<DeviceConfig>();
            Editors = new List<EditorConfig>();
        }
    }

    public class UIConfig
    {
        public string Name;
        public string Description;
        public string UserAgent;
        public int Priority;
        public UIConfig()
        {
            Name = "";
            Description = "";
            UserAgent = "";
            Priority = 0;
        }
    }

    public class DeviceConfig
    {
        public string Name;
        public string Description; 
        public List<string> UIs;
        public int Width;
        public int Height;

        public DeviceConfig()
        {
            Width = 400;
            Height = 300;
            Name = "";
            Description = ""; 
            UIs = new List<string>();
        }
    }

    public class EditorConfig
    {
        public string Name;
        public string Description;
        public List<string> UIs;
        public int Width;
        public int Height;


        public EditorConfig()
        {
            Width = 400;
            Height = 300;
            Name = "";
            Description = ""; 
            UIs = new List<string>();
        }
    }
}
